package com.jiwei.community.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Author 季伟
 * 功能：
 */
public class WebUtils {
    public static void writeJsonDataToResponse(HttpServletResponse response, String json){

        try {
            response.setContentType("application/json;charset=utf-8");
            response.setStatus(200);
            response.getWriter().print(json);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
